package net.hn.hnms.biz.gasext.dws.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.hn.hnms.biz.gasext.dws.domain.DwdRydwRyjzDPo;
import net.hn.hnms.biz.gasext.dws.domain.RydwRyjzPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS(value = "dwd")
public interface DwdRydwRyjzDMapper extends BaseMapper<DwdRydwRyjzDPo> {
    /**
     * 查询当前煤矿下所有基站
     * @param mineCode
     * @return
     */
    List<RydwRyjzPo> selectStationListByMineCode(@Param("orgCode") String mineCode);

    /**
     *  根据基站编码，查询基站最新信息
     * @param jzbm
     * @return
     */
    DwdRydwRyjzDPo selectOneByJzbm(@Param("jzbm")String jzbm);
    /**
     *  根据煤矿编码和基站编码，查询基站最新信息
     * @param jzbm
     * @return
     */
    DwdRydwRyjzDPo selectOneByMineCodeJzbm(@Param("mineCode")String mineCode,@Param("jzbm")String jzbm);

    /**
     * 获取当前煤矿的所有基站信息列表
     * @param mineCode
     * @return
     */
    List<DwdRydwRyjzDPo> selectRyjzListByMineCode(@Param("mineCode") String mineCode);
}
